package com.gadgets.busi.bm01.controller;

import com.gadgets.busi.bm01.dto.TxtCopyFileDTO;
import com.gadgets.busi.bm01.dto.TxtCopyRestDTO;
import com.gadgets.framework.common.exception.GadgetsServiceException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * The interface Txt copy controller.
 *
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020 -09-16
 */
public interface ITxtCopyController {

    /**
     * 文本拷贝请求（RestFul请求）
     *
     * @param request        网络请求信息
     * @param response       网络应答信息
     * @param txtCopyRestDTO 文本RestFul请求信息
     * @throws GadgetsServiceException 异常信息
     */
    void requestTxtCopy(HttpServletRequest request, HttpServletResponse response, TxtCopyRestDTO txtCopyRestDTO) throws GadgetsServiceException;

    /**
     * 文本拷贝请求（文本文件请求）
     *
     * @param request        网络请求信息
     * @param response       网络应答信息
     * @param txtCopyFileDTO 文件请求信息
     * @throws GadgetsServiceException 异常信息
     */
    void requestTxtCopy(HttpServletRequest request, HttpServletResponse response, TxtCopyFileDTO txtCopyFileDTO) throws GadgetsServiceException;


}
